package com.ezcms.dao.impl;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.ezcms.dao.BaseDao;
/**
 * 不用
 * @author ZHF
 *
 * @param <T>
 */
public class BaseDaoImpl<T>  extends HibernateDaoSupport implements BaseDao<T>{
	@Resource(name="sessionFactory")
    public void setSuperSessionFactory(SessionFactory sessionFactory){
        super.setSessionFactory(sessionFactory);
    }
	@Override
	public  void save(T t) {
		this.getHibernateTemplate().save(t);
	}
}
